package com.youdianstar.app.common.callback

import com.youdianstar.app.common.event.EventLiveData


/**
 * File: NetworkStateManager
 * Author: 82149 Create: 2021/9/18 17:50
 * Changes (from 2021/9/18)
 * --------------------------------------------------
 * description: 网络变化事件管理者
 * ---------------------------------------------------
 *
 */
class NetworkStateManager private constructor() {
    val mNetworkStateCallback = EventLiveData<Boolean>()

    companion object {
        val instance: NetworkStateManager by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
            NetworkStateManager()
        }
    }
}